package cn.sourcespro.spring.service;

import cn.sourcespro.spring.entity.User;

/**
 * security
 *
 * @author zhanghaowei
 * @date 2018/7/26
 */
public interface AuthService {

    User register(User user);

    String login(String username, String password);

    String refresh(String oldToken);
}
